OnImpressionListener

Interface for receiving callbacks when an "impression" event occurs within the RevelDigital player environment.

An impression typically signifies a notable event related to content visibility or audience interaction. This could include, for example:

  • The detection of one or more viewers (e.g., via face detection).
  • A significant playback event for a piece of content (e.g., content started, viewed for a qualifying duration).
  • An advertisement being displayed.
The specific nature of the impression is encapsulated within the provided Impression object.

Implementations of this listener are typically registered with a service or component responsible for tracking these events, such as an audience measurement service or a content playback monitor. This allows applications to react to impressions for purposes like analytics, logging, or triggering dynamic content changes.

See also

// Ensure Impression interface/class is well-documented

Functions

Link copied to clipboard
abstract fun onImpression(impression: Impression)
Called when an impression event has been generated by the player system.